/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package application.Arguments;

import org.apache.log4j.*;

/**
 * This class is designed to access the arguments of the application
 * The arguments of the application are defined in Netbeans 
 * Properties > Run > Arguments or in command line
 * 
 * @author JNC
 */
public class ApplicationArguments {
    /**
     * The log4j log
     */
    private static final Logger _logger = Logger.getLogger(ApplicationArguments.class);

    /**
     * Process all the arguments of the application
     * @param myArguments
     */
    public static void processAllArguments(String myArguments[]) {
        _logger.debug(myArguments.length + " arguments to process");
        for (String arg : myArguments) {
            _logger.debug("Processing argument " + arg);
            new ApplicationArgument(arg).process();
        }
    }
}